package cc.lj.internal.coupons.infrastructure.repository;

import cc.lj.internal.coupons.domain.ticket.repository.ITicketBatchLifecycleContinueRepository;
import cc.lj.internal.coupons.infrastructure.po.TicketBatchLifecycleContinuePO;
import cc.lj.internal.coupons.infrastructure.repository.mysql.TicketBatchLifecycleContinueMysqlRespository;
import cc.lj.internal.coupons.interfaces.dto.TicketBatchDTO;
import org.springframework.stereotype.Repository;
import javax.annotation.Resource;
import java.util.List;

/**
 * 电子券批次连续有效期表　仓储实现
 * @author liangxifeng
 * @date 2021-12-14
 */
@Repository("ticketBatchLifecycleContinueRespository")
public class TicketBatchLifecycleContinueRespository implements ITicketBatchLifecycleContinueRepository {
    @Resource(name="ticketBatchLifecycleContinueMysqlRespository")
    private TicketBatchLifecycleContinueMysqlRespository repository;

    @Override
    public List<TicketBatchLifecycleContinuePO> getNoStartList() {
        return repository.getNoStartList();
    }

    @Override
    public List<TicketBatchLifecycleContinuePO> getList(TicketBatchLifecycleContinuePO ticketBatchLifecycleContinuePO) {
        return repository.getList(ticketBatchLifecycleContinuePO);
    }

    /**
     * 返回在有效期内的列表
     * @param continuePO
     * @return
     * @author zhaoyong
     */
    @Override
    public List<TicketBatchLifecycleContinuePO> getListValid(TicketBatchLifecycleContinuePO continuePO)
    {
        return repository.getListValid(continuePO);
    }
}
